package day8.homework;

public class Demo {

	public static void main(String[] args) {
		MyDoor myDoor = new MyDoor();
		myDoor.alarm();
		myDoor.open();
		myDoor.close();
		
		IAlarm alarm = new MyDoor();
		alarm.alarm();
	}
}